package ${pack}.${module}.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import ${pack}.${module}.domain.entity.${className}Entity;
import ${pack}.${module}.domain.req.${className}Req;

import javax.servlet.http.HttpServletResponse;

/**
 * @author: ${author}
 * @date: ${date}
 */
public interface ${className}Service extends IService<${className}Entity> {

    /**
     * 新增
     */
    int add(${className}Req req);

    /**
     * 删除
     */
    int del(${className}Req req);

    /**
     * 编辑
     */
    int edit(${className}Req req);

    /**
     * 详情
     */
    ${className}Entity findOne(Integer id);

    /**
     * 列表
     */
    IPage<${className}Entity> findPage(Integer pageNum, Integer pageSize, ${className}Req req);

    /**
     * 导出
     */
    void export(HttpServletResponse response);
}